`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    20:36:33 04/19/2014 
// Design Name: 
// Module Name:    drawSq 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module drawSq(on,hc,vc,blank,xX,yY,square);
	
	input on; // indicates if square is off or on;
	input signed [11:0] hc,vc; // h and v scanner from VGA display
	input blank;
	input signed [11:0] xX,yY; // relative top left corner to draw digit from
	
	output square;
	
	assign square = on ? ~blank && (hc >= xX && hc <= xX+2 && vc >= yY && vc <= yY+2): 1'b0;
	
endmodule
